Skip to content

[server] Complete the BulkLoad transaction lifecycle - #5361

Merged
platinumhamburg merged 5 commits into
apache:mainfrom
platinumhamburg:feature-bulkload-transaction-lifecycle
Nov 26, 2026
Merged

platinumhamburg merged 5 commits into
apache:mainfrom
platinumhamburg:feature-bulkload-transaction-lifecycle

Conversation

@platinumhamburg

Copy link
Copy Markdown
Contributor

Purpose

Closes #5360, a sub-issue of #4224.

#5275 lets a caller allocate and publish a snapshot for one bucket. This change adds the transaction operations around those RPCs so a caller can begin an import, find it again after a lost response, inspect progress and finish or abort it. It carries forward the transaction portion of #5269 on top of the merged bucket implementation.

Brief change log

  • Bind Begin to a physical table, its schema version and the selected physical targets. Overlapping transactions cannot claim the same target. Replaying Begin with the same ID and selection returns the original transaction while its result is retained.
  • Report allocated and committed bucket counts per target. Commit succeeds once all buckets of the remaining targets have committed. Abort preserves snapshots that have already been published.
  • Retain terminal results for replay and reclaim expired transaction metadata. A dropped and recreated partition has a new physical identity.

Tests

The server tests exercise the RPC lifecycle against ZooKeeper, including replay after schema changes, partition replacement, authorization, partial progress followed by abort, and recovery of previously imported data after TabletServer restart.

API and Format

Adds five Coordinator RPCs: BeginBulkLoad, GetBulkLoadInfo, ListInProgressBulkLoads, CommitBulkLoad and AbortBulkLoad. Physical target ownership is stored alongside the transaction metadata used by the bucket RPCs.

Documentation

Documents the target-count limit and terminal-result retention in the configuration reference. The protocol is described in FIP-61.

@platinumhamburg
platinumhamburg force-pushed the feature-bulkload-transaction-lifecycle branch 9 times, most recently from c8b399c to f67ad38 Compare November 25, 2026 09:24
@platinumhamburg
platinumhamburg marked this pull request as ready for review November 25, 2026 09:41
@platinumhamburg
platinumhamburg force-pushed the feature-bulkload-transaction-lifecycle branch from f67ad38 to 3c29c08 Compare November 25, 2026 09:54
Add Coordinator operations to begin and replay transactions, query progress, and commit or abort imports. Retain terminal results for replay and reclaim expired transaction metadata.

Read progress on the I/O executor and record withdrawn targets during transaction finalization.
@platinumhamburg
platinumhamburg force-pushed the feature-bulkload-transaction-lifecycle branch from 3c29c08 to d1877d9 Compare November 25, 2026 10:14
@luoyuxia
luoyuxia requested a balanced review from Copilot November 26, 2026 01:27

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

platinumhamburg and others added 4 commits November 26, 2026 17:06
Generated-by: OpenAI Codex

AI-Contributed/Feature: 0/1
AI-Contributed/UT: 0/0

(cherry picked from commit 265bbd0fe11027d39d0c4b5574f8b1c1f29c0199)
Co-Authored-By: Codex <noreply@openai.com>
AI-Contributed/Feature: 6/6
AI-Contributed/UT: 0/0
…sult handling

Co-Authored-By: Codex <noreply@openai.com>
AI-Contributed/Feature: 37/167
AI-Contributed/UT: 20/20
@platinumhamburg
platinumhamburg merged commit 8d63b49 into apache:main Nov 26, 2026
32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[server] Complete the BulkLoad transaction lifecycle

4 participants